﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<MyHealthByDesignWebsite.Models.UserHealthHistory>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    My Health Check
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<h2>My Health Check</h2>
<script src="<%: Url.Content("~/Scripts/jquery.validate.min.js") %>" type="text/javascript"></script>
<script src="<%: Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js") %>" type="text/javascript"></script>

<% using (Html.BeginForm()) { %>
    <%: Html.ValidationSummary(true,"Please correct the invalid information") %>
    <fieldset>
        <legend>My Health History</legend>

       
        <div class="editor-field" visible="false">
            <%: Html.HiddenFor(model => model.U_UserID) %>
            <%: Html.ValidationMessageFor(model => model.U_UserID) %>
        </div> 
        

        <div class="editor-label">
            <%: Html.LabelFor(model => model.UHH_pregnant,"Are you pregnant or breast feeding?") %>
        </div>
        <div class="editor-field" >
            <%: Html.DropDownListFor(model => model.UHH_pregnant, (IEnumerable<SelectListItem>)ViewData["PregOpts"])%>
            <%: Html.ValidationMessageFor(model => model.UHH_pregnant)%>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.UHH_medication, "What medications are you currently taking?") %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.UHH_medication)%>
            <%: Html.ValidationMessageFor(model => model.UHH_medication)%>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.UHH_vitamin, "What vitamins are you currently taking?") %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.UHH_vitamin)%>
            <%: Html.ValidationMessageFor(model => model.UHH_vitamin)%>
        </div>

          <div class="editor-label">
            <%: Html.LabelFor(model => model.UHH_supplement, "What supplements are you currently taking?") %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.UHH_supplement)%>
            <%: Html.ValidationMessageFor(model => model.UHH_supplement)%>
        </div>
        <div class="editor-label">
            <%: Html.LabelFor(model => model.UHH_surgery, "What surgeries have you gone through in the past?") %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.UHH_surgery)%>
            <%: Html.ValidationMessageFor(model => model.UHH_surgery)%>
        </div>

         <div class="editor-label">
           <%: Html.CheckBoxFor(model => model.UHH_prematureMenopause)%> <%: Html.LabelFor(model => model.UHH_prematureMenopause, "Are you a female with premature menopause without estrogen replacement therapy?") %>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<%= Html.ActionLink("What is Premature Menopause?", "Details", "WebPage", new { id = "7" }, new { target = "_blank" })%> 
        </div>
        <div class="editor-field">
            
            <%: Html.ValidationMessageFor(model => model.UHH_prematureMenopause)%>

        </div>

        <p style = "text-align:center">
            <input type="submit" value="Continue" />
        </p>
    </fieldset>
    


<% } %>




</asp:Content>
